package com.farm.factory;

import com.farm.AgriculturalMachine;

//喷药机
class SprayingMachine extends AgriculturalMachine {
    @Override
    public void operate(String  machineName) {
        System.out.println(machineName + "喷药机正在喷药...");
    }

    @Override
    public void displayStatus(String  machineName) {
        System.out.println(machineName + "喷药机状态: 工作中, 药液剩余量: " + (int)(Math.random() * 100) + "%");
    }

    @Override
    public String getDescription() {
        return null;
    }
}
